package ZuoYe;

public class CeShi {
	public static void main(String[] args) {
	/*	JiDongChe jdc=new JiDongChe();
		jdc.chepaihao="xx1234";
		jdc.speed=100;
		jdc.weight=100;
		System.out.println("无参车牌号为："+jdc.chepaihao+
				"\r速度为："+jdc.speed+
				"\r载重量为："+jdc.weight);
		
		jdc.chepaihao=("辽A9752");
        jdc.getAddspeed(40);
        System.out.println("无参构造方法将车牌号改为："+
        jdc.chepaihao+"\r速度增加到："+jdc.speed);
        
        JiDongChe jdc1=new JiDongChe("xx1234", 150, 100);
        jdc1.getjianspeed(40);
        jdc1.setchepaihap("辽B5086");
        System.out.println("有参构造方法将车牌号改为："+
        jdc1.chepaihao+"\r速度减为："+jdc1.speed);
        System.out.println("该车辆的载重量为："+jdc1.weight);*/
		
		JiDongChe jdc1=new JiDongChe();//无参
		jdc1.setChepaihao("辽A9752");
		jdc1.jiasu();
		System.out.println(jdc1);
		
		JiDongChe jdc2=new JiDongChe("辽B5086", 150, 200);//有参
		jdc2.jiansu();
		System.out.println(jdc2);
	}
}
